/* 配置项 */
$itemHeight: .8rem;
$itemFontSize: .32rem;
$themeColor: #3a9aff;
$borderColor:#d4d4d4;
// .box{display: flex;position:relative;}
// .box-f1{flex: 1;}
// .box-ac{align-items: center}
// .box-jc{justify-content: center}
// .box-ver{flex-direction: column}
.ub{
  display: flex;position:relative;
}
.ub-f1{
  flex: 1;
}

/*select*/
.zx_mask {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 9999;
  animation-duration: 333ms;
  animation-name: fadeIn;
}

.zx_select {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: $itemFontSize;
  height: 6.2 * $itemHeight;
  width: 100%;
  color: #333;
  background: #FFF;
  z-index: 9999;
  animation:fadeInUp 333ms;
  transition: 333ms all;
}

.zx_select > header {
    overflow: hidden;
    width: 100%;
    height: 1.2 * $itemHeight;
    line-height: 1.2 * $itemHeight;
    text-align: center;
    // background: #F0F1F2;
    border-bottom: 1px solid $borderColor;
    // box-shadow: 0 0 .2rem #666;
}
.zx_select > header > h1 {
    display: inline-block;
    font-size: $itemFontSize;
    font-weight: normal;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
}
.zx_select > header > button {
    font-size: $itemFontSize;
    height: 1.2 * $itemHeight;
    padding: 0 $itemFontSize*1.5;
    border: none;
    outline: none;
    color: $themeColor;
    background:none;
}
.zx_select button.nav_left {
    float: left;
}
.zx_select button.nav_right {
    float: right;
}
/*列表*/
.zx_select > div {
    overflow: hidden;
    position: relative;
    height: 5 * $itemHeight;
    text-align: center;
}
.zx_select > div > div.ub-f1 {
  width:100%;
}
.zx_select ul {
  -webkit-margin-before: 0 !important;
  -webkit-margin-after: 0 !important;
  -webkit-margin-start: 0 !important;
  -webkit-margin-end: 0 !important;
  -webkit-padding-start: 0 !important;
}
.zx_select ul > li {
  display: block;
  height: $itemHeight;
  line-height: $itemHeight;
  padding: 0 10px !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zx_select .sel_middle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: $itemHeight;
    margin-top: -$itemHeight / 2;
    pointer-events: none;
    border-top: 1px solid $borderColor;
    border-bottom: 1px solid $borderColor;
}

.zx_select .sel_top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2 * $itemHeight;
    pointer-events: none;
    // background: rgba(209,213,216,0.7);
    background:linear-gradient(to top, rgba(255,255,255,0.3) , rgba(255,255,255,0.9));
}
.zx_select .sel_bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2 * $itemHeight;
    pointer-events: none;
    background:linear-gradient(to bottom, rgba(255,255,255,0.3) , rgba(255,255,255,0.9));
}
